/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.yaba.dbs.client;

import br.com.yaba.dbs.core.FileBackupException;
import java.util.Scanner;

/**
 *
 * @author emanuellfaustino
 */
public class ClientMain {

    public static void main(String... args) throws FileBackupException {
        Scanner reader = new Scanner(System.in);
        
        System.out.println("Write local file path: ");
        String filePath = reader.nextLine();
        
        System.out.println("Write user key: ");
        String key = reader.nextLine();
        
        ClientImpl clientBackup = new ClientImpl();
        String fileId = clientBackup.put(key, filePath);
        
        System.out.println("The file id is: " + fileId);
    }
}
